.class Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;
.super Ljava/lang/Object;
.source "CommunityAppBaseFragment.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/CommunityAppBaseFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    .prologue
    .line 296
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 6
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    const/4 v3, 0x0

    .line 300
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # operator-- for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mCurPage:I
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$010(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)I

    .line 301
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mPullToRefreshView:Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;->onRefreshComplete()V

    .line 302
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v1, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mPullToRefreshView:Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mExtraModels:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    sub-int/2addr v0, v2

    if-lez v0, :cond_63

    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->BOTH:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    :goto_26
    invoke-virtual {v1, v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase;->setMode(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;)V

    .line 303
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->hideDialog()V

    .line 304
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mDelayLoad:Z
    invoke-static {v0, v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$902(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 305
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsRequesting:Z
    invoke-static {v0, v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$202(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 307
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v1, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_User:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v1

    if-eq v0, v1, :cond_5c

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v1, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Fav:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v1

    if-eq v0, v1, :cond_5c

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v1, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Tag:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    .line 308
    invoke-virtual {v1}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_62

    .line 309
    :cond_5c
    const v0, 0x7f0c0093

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 311
    :cond_62
    return-void

    .line 302
    :cond_63
    sget-object v0, Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;->PULL_FROM_START:Lcom/handmark/pulltorefresh/library/PullToRefreshBase$Mode;

    goto :goto_26
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 296
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 10
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/4 v3, 0x1

    const/4 v4, 0x0

    .line 317
    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v5, v5, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v6, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Fav:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v6}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v6

    if-ne v5, v6, :cond_63

    .line 318
    invoke-static {p1}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->parseFavAppModels(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v0

    .line 323
    .local v0, "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    :goto_12
    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mCurPage:I
    invoke-static {v5}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$000(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)I

    move-result v5

    if-ne v5, v3, :cond_68

    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v5, v5, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v6, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_New:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v6}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v6

    if-eq v5, v6, :cond_68

    move v1, v3

    .line 324
    .local v1, "refreshHotData":Z
    :goto_27
    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mLastAppPos:I
    invoke-static {v5}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$100(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)I

    move-result v5

    const/4 v6, -0x1

    if-ne v5, v6, :cond_6a

    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v5, v5, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    sget-object v6, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_New:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-virtual {v6}, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->ordinal()I

    move-result v6

    if-ne v5, v6, :cond_6a

    move v2, v3

    .line 326
    .local v2, "refreshNewData":Z
    :goto_3d
    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    const-string v6, "has_next"

    invoke-virtual {p1, v6, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v6

    if-eqz v6, :cond_6c

    :goto_47
    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mHasMoreData:Z
    invoke-static {v5, v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$402(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 327
    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mHandler:Landroid/os/Handler;
    invoke-static {v3}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$1100(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Landroid/os/Handler;

    move-result-object v3

    new-instance v6, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;

    invoke-direct {v6, p0, v1, v2, v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6$1;-><init>(Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;ZZLjava/util/ArrayList;)V

    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$6;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    .line 359
    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mDelayLoad:Z
    invoke-static {v4}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$900(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v4

    if-eqz v4, :cond_6e

    const-wide/16 v4, 0x104

    .line 327
    :goto_5f
    invoke-virtual {v3, v6, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 361
    return-void

    .line 320
    .end local v0    # "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    .end local v1    # "refreshHotData":Z
    .end local v2    # "refreshNewData":Z
    :cond_63
    invoke-static {p1}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->parseAppModels(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v0

    .restart local v0    # "models":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    goto :goto_12

    :cond_68
    move v1, v4

    .line 323
    goto :goto_27

    .restart local v1    # "refreshHotData":Z
    :cond_6a
    move v2, v4

    .line 324
    goto :goto_3d

    .restart local v2    # "refreshNewData":Z
    :cond_6c
    move v3, v4

    .line 326
    goto :goto_47

    .line 359
    :cond_6e
    const-wide/16 v4, 0x0

    goto :goto_5f
.end method
